package graphicinterface;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 * this class will create a JLabel with from 0 to 5 colored stars.
 * It's used by our system to show things like "ratings" to the user.
 * @author Mina
 *
 */
public class CreatesLabelWith5StarRating
{
	public static JLabel createLabelWithStars(int numberOfStars)
	{
		ImageIcon iconWithStars = 
				CreatesImageIcon.createImageIcon("images/" + numberOfStars + "stars.png",
																		"up to 5 colored stars");
		JLabel labelWithStars = new JLabel(iconWithStars);
		return labelWithStars;
	}

}
